
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    bannerList: {
      type: Array,
      value: []
    },
    height: {
      type: String,
      value: '320rpx'
    },
    autoplay: {
      type: Boolean,
      value: true
    },
    indicatorDots: {
      type: Boolean,
      value: true
    },
    margin: {
      type: Number,
      value: 0
    },
    padding: {
      type: Number,
      value: 0
    },
  },

  /**
   * 组件的初始数据
   */
  data: {
    interval: 5000,
    duration: 500,
    indicatorColor: "rgba(255, 255, 255, .8)",
    indicatorActiveColor: "rgba(0, 0, 0, .6)",
    easingFunction: "default"
  },

  /**
   * 组件的方法列表
   */
  methods: {
    byDetail(e) {
      this.triggerEvent('swiperTap', e)
    }
  }
})